package apigateway.project.commen.enums;

import io.netty.handler.codec.http.HttpResponseStatus;
import lombok.Getter;

@Getter
public enum Code  {

    PATH_NO_MATCHED(HttpResponseStatus.NOT_FOUND,9999,"没有找到匹配的路径,请求失败"),

    RULE_NO_MATCHED(HttpResponseStatus.NOT_FOUND,1000,"没有找到匹配的路由规则,请求失败");





    private HttpResponseStatus status;
    private int code;
    private String message;
    Code(HttpResponseStatus status, int code, String msg) {
        this.status = status;
        this.code = code;
        this.message = msg;
    }
}
